﻿using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;

namespace SendEmail
{
	/// <summary>
	/// 数据访问类:enterprise_basic
	/// </summary>
	public partial class enterprise_basic
	{
		public enterprise_basic()
		{}
       
       
		#region  Method

	
	
       
      
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
            strSql.Append("select issubsrciption,email ");
			strSql.Append(" FROM enterprise_basic ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			return DbHelperSQL.Query(strSql.ToString());
		}
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetListUserEmail(string strWhere)
        {
            StringBuilder strSql = new StringBuilder();
            strSql.Append("select issubscription,email ");
            strSql.Append(" FROM user_basic ");
            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            return DbHelperSQL.Query(strSql.ToString());
        }

		
		
		#endregion  Method
	}
}

